﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h2>Vote por su candidato Favorito </h2>

<form class="pure-form pure-form-aligned">
    <fieldset>
        <div class="pure-control-group">
            <label for="name">Ingrese número de documento</label>
            <input id="name" type="text" placeholder="Dni">
        </div>
    </fieldset>
       
        @using (var db = new MyUrnaVirtual.dbContext())
        {
            foreach (var cand in db.Candidatos)
            {
               <input type="radio" name="idCandidato" value="@cand.idCandidato" /> @cand.nombre @cand.apellido <br />
            }
        }
       
    <br />
</form>

